package com.xiangty.ssmtemplate.dao;

import com.xiangty.ssmtemplate.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Classname UserMapper
 * @Description TODO
 * @Date 2019/6/7 23:51
 * @Created by xiangty
 */
@Repository
public interface UserMapper {

    List<User> queryUserList();

    Integer saveUser(User user);

    Integer updateUser(User user);

    User getUserByName(@Param("username") String username);

    User getUserById(@Param("id") Integer id);

    Integer deleteById(@Param("id") Integer id);

}
